#common-sidebar {
  /* transition: transform 0.1s; */
  width: 20em;
}

#passage-attachment-container {
  padding-left: 0.5em;
}

.passage-attachment-item {
  display: inline-block;
  background: white;
  font-size: 1em;
  width: 100%;
  padding: 0.5em 0.5em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.37);
  border-radius: 0.5em;
  border: none;
  transition: box-shadow 0.2s;
  margin: 0.5em 0;
  text-align: center;
  color: black;
  text-decoration: none;
}

.passage-attachment-item:active {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.37);
}

#passage-dict-content > .dict-container {
  padding: 0 0.4em;
}

.dict-container .dict-container {
  padding: 0 1em;
}

.dict-container::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-radius: 0.2em;
  transform: translateY(-0.2em);
  background: var(--highlight-color);
  margin: 0 0.4em 0 0;
}

.dict-container.current::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 1em;
  border-radius: 0.2em;
  transform: translateY(0.1em);
  background: var(--highlight-color);
  margin: 0 0.4em 0 0;
}

.dict-container.current > .dict-title {
  color: var(--highlight-color);
  font-weight: bold;
}

.dict-title {
  display: inline-block;
  margin: 0.1em 0;
  text-decoration: none;
  color: black;
}

.dict-content.hidden {
  display: none;
}

#passage-content {
  width: 100%;
  border: none;
  overflow: hidden;
}

#common-main.has-passage {
  padding: 1em 0;
}

#side-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
}

#side-menu-icon {
  height: 1em;
  line-height: 1em;
  width: 1em;
  font-size: 2em;
  padding: 0.2em;
  background-color: white;
  text-align: center;
  border-radius: 0.5em 0 0 0.5em;
  /* transform: translateY(0.5em); */
  /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.37); */
  z-index: 1;
  transition: opacity 0.5s;
}

#side-menu-icon.transparent {
  opacity: 0.5;
}

#side-menu {
  display: flex;
}

#side-menu-content {
  background-color: white;
  padding: 0 0 0 1em;
  border-radius: 0 0 0 0.5em;
  min-width: 15em;
  /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.37); */
}

#side-menu.hidden #side-menu-content {
  display: none;
}

#side-menu.animate-hidden {
  right: -16em;
}

#side-menu.animate-show {
  right: -16em;
}

#passage-info {
  padding: 0 2em;
  font-size: 0.8em;
  text-align: center;
}

#passage-info-history {
  color: var(--highlight-color);
  font-weight: bold;
  text-decoration: none;
}
